<script type="text/javascript">
$(function(){
	$("#login").validate();
	//第一次时把原始提示清掉，得到焦点时把hui去掉		
	$(':input').not('#submit,#remember').click(function(){
		$(this).val('');
		$(this).unbind('click');		
	});
    $('#login label').click(function(){
        $(this).parent().find('input').focus();
    });
    $('#email,#password').keyup(function(){
        if($(this).val()=='')
			$(this).prev().show();
		else
			$(this).prev().hide();
    });
    setTimeout(function(){
        if($("#email").val())
            $("#email").keyup();
        if($('#password').val())
            $('#password').keyup();
    },500);
});
</script>
<div class="content_bai">
	<div class="login">
    	<div class="login_s">
        	<div class="enter">
        	<form method="post" id="login">
            	<h1>登录悠奇网</h1>
                <div class="wrong" <?php if($this->flag!='nopass') echo ' style="display:none;"';?>>用户名或密码错误</div>
                <ul>
                    <li><label>请输入Email地址</label>
                        <?php echo $this->formText('email',NULL,array('class'=>'gray')) ?></li>
                	<li><label>请输入密码</label>
                        <?php echo $this->formPassword('password',null,array('class'=>'gray')) ?><a href="/user/retakepassword">忘记密码？</a></li>
                </ul>
                <label class="baochi"><input name="remember" id="remember" type="checkbox" value="1" /> 在这台电脑上保存登录状态</label>
                <div class="submit">
                	<input name="submit" type="submit" value="登 录" onmouseover="this.className='btn'" onmouseout="this.className=''" />
                </div>
                <div class="hezuo">
                	<h2>使用合作网站账号登录UUCH(悠奇网)：</h2>
                    <dl>
                        <dd><a class="QQ" href="/user/union/name/qq">QQ号码</a></dd>
                        <dd><a class="facebook" href="/user/facebook">Facebook</a></dd>
                    	<dd><a class="alipay" href="/user/alipay/">支付宝</a></dd>
                    	<dd><a class="Facebook" href="/user/union/name/taobao">淘宝登录</a></dd>
                    	<dd><a class="Twitter" href="/user/union/name/weibo">微博登录</a></dd>
                    </dl>
                </div>
            </form>
            </div>
            <div class="zhuce">
            	<h2>还不是悠奇网用户？</h2>
                <p>免费注册成为悠奇网用户，便能立刻享受更便宜、更方便、更安全的服务！</p>
                <div class="zc">
                	<a href="/user/join/">立即注册我的账号</a>
                </div>
                <p></p>
            </div>
            <div class="l_help">
            	
            </div>
        </div>
    </div>
</div>